<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	pageContext.setAttribute("path",request.getContextPath());
%>
<script type="text/javascript">
	$(document).ready(function(){
		$("ul li:eq(2)").addClass("active");
	});
</script>
<div class="data_list">
	<div class="data_list_title">
		添加/修改学生信息
	</div>
	<form action="${path}/student/add" method="post">
		<div class="data_form">
			<table align="center">
				<tr>
					<td><font color="red">*</font>学生学号：</td>
					<td><input type="text" id="sno"  name="sno" value="" placeholder="请输入学号"  style="margin-top:5px;height:30px;" /></td>
				</tr>
				<tr>
					<td><font color="red">*</font>学生姓名：</td>
					<td><input type="text" id="name"  name="name" value=""  placeholder="请输入姓名"  style="margin-top:5px;height:30px;" /></td>
				</tr>
				<tr>
					<td><font color="red">*</font>性别：</td>
					<td>
						<select id="sex" name="sex" style="width: 90px;">
							<option value="">请选择...</option>
							<option value="男">男</option>
							<option value="女">女</option>
						</select>
      				</td>
				</tr>
				<tr>
					<td><font color="red">*</font>籍贯：</td>
					<td><input type="text" id="hometown"  name="hometown" value="" placeholder="请输入籍贯"  style="margin-top:5px;height:30px;" /></td>
				</tr>
				<tr>
					<td><font color="red">*</font>入学日期：</td>
					<td><input type="date" id="entryDate" name="entryDate" placeholder="yyyy-MM-dd" value="" placeholder="请输入入学日期"  style="margin-top:5px;height:30px;" /></td>
				</tr>
				<tr>
					<td><font color="red">*</font>所属院系：</td>
					<td>
						<select id="department" name="department" style="width: 200px;">
	      					<option value="计算机科学与技术学院">计算机科学与技术学院</option>
							<option value="电子信息工程学院">电子信息工程学院</option>
							<option value="新闻传播学院">新闻传播学院</option>
							<option value="艺术设计学院">艺术设计学院</option>
							<option value="外国语学院">外国语学院</option>
						</select>
					</td>
				</tr>
				<tr>
					<td><font color="red">*</font>电子邮箱：</td>
					<td><input type="text" id="email"  name="email" value="" placeholder="请输入电子邮箱"  style="margin-top:5px;height:30px;" /></td>
				</tr>
				<tr>
					<td><font color="red">*</font>联系电话：</td>
					<td><input type="text" id="tel"  name="tel" value="" placeholder="请输入联系电话"  style="margin-top:5px;height:30px;" /></td>
				</tr>
			</table>
			<div align="center">
				<input type="submit" class="btn btn-primary" value="保存"/>
				&nbsp;<button class="btn btn-primary" type="button" onclick="javascript:window.location='${path}/student/show'">返回</button>
			</div>
			<div align="center">
				<font id="error" color="red">${msg}</font>
			</div>
		</div>
	</form>
</div>